home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / tex / dvi / dvipssrc.zoo / atari / makefile < prev    next >
Makefile  |  1991-04-27  |  7KB  |  217 lines

  1. #
  2. #   Makefile for dvips
  3. #
  4.  
  5. CC = gcc
  6.  
  7. # If you are compiling dvips for suid or other privileges, you will
  8. # definitely want to define the following symbol; else don't.
  9. # SECURE = -DSECURE
  10.  
  11. # If you want EMTEX specials, define the following.
  12. EMTEX = -DEMTEX
  13.  
  14. # for SYSV (and friends which use <string.h> instead of <strings.h>)
  15. # define the c-compiler flag
  16. # add -D_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
  17. # for subdir searching)
  18. # SYS = -DSYSV
  19.  
  20. # Define this to be whatever you use for installation.  If you don't have
  21. # install, use a script that invokes copy and chmod's the files
  22. # appropriately.
  23. # INSTALL = install
  24. INSTALL =
  25.  
  26. # the default paper format, if other than letter.
  27. # DEFPFMT = -DDEFPFMT=\"a4\"
  28. DEFPFMT =
  29.  
  30. # where the installed binary goes
  31. # BINDIR = /usr/bin
  32. BINDIR = c:\\\bin
  33.  
  34. # where the TFM files go
  35. # TFMDIR = /usr/lib/tex/fonts/tfm
  36. TFMDIR = d:\\\tex\\\tfm
  37.  
  38. # the default path to search for TFM files 
  39. # (this usually is identical to TeX's defaultfontpath, which omits `.')
  40. # (private fonts are given an explicit directory, which overrides the path)
  41. # TFMPATH = /LocalLibrary/Fonts/TeXFonts/tfm:$(TFMDIR)
  42. TFMPATH = $(TFMDIR)
  43.  
  44. # where the PK files go.
  45. # PKDIR = /usr/lib/tex/fonts/pk
  46. PKDIR = d:\\\dvips\\\fonts
  47.  
  48. # the default path to search for PK files (usually omits `.')
  49. # Don't forget to add the directory that
  50. # MakeTeXPK puts the files!  (In this case, /LocalLibrary/Fonts...)
  51. # PKPATH = /LocalLibrary/Fonts/TeXFonts/pk:$(PKDIR)
  52. PKPATH = $(PKDIR)
  53.  
  54. # where the VF files go
  55. # VFDIR = /usr/lib/tex/fonts/vf
  56. VFDIR = d:\\\tex\\\vf
  57.  
  58. # the default path to search for VF files (usually omits `.')
  59. # VFPATH = /LocalLibrary/Fonts/TeXFonts/vf:$(VFDIR)
  60. VFPATH = $(VFDIR)
  61.  
  62. # additional directories in which to search for subdirectories to find
  63. # both tfm and pk files
  64. FONTSUBDIRPATH = 
  65.  
  66. # where the config files go
  67. # CONFIGDIR = /usr/lib/tex/ps
  68. CONFIGDIR = d:\\\dvips\\\ps
  69.  
  70. # the default path to search for config files
  71. # CONFIGPATH = .:$(CONFIGDIR)
  72. CONFIGPATH = .,$(CONFIGDIR)
  73.  
  74. # the name of your config file
  75. # CONFIGFILE = config.ps
  76. CONFIGFILE = config.ps
  77.  
  78. # where the header PS files go
  79. # HEADERDIR = /usr/lib/tex/ps
  80. HEADERDIR = d:\\\dvips\\\ps
  81.  
  82. # the default path to search for header files
  83. # HEADERPATH = .:$(HEADERDIR)
  84. HEADERPATH = .,$(HEADERDIR)
  85.  
  86. # where epsf.tex and rotate.tex go (usually the TeX macros directory)
  87. # TEXMACRODIR = /usr/lib/tex/inputs
  88. TEXMACRODIR = d:\\\tex\\\macros
  89.  
  90. # the default path to search for epsf and psfiles
  91. # (usually the same as TeX's defaultinputpath)
  92. # FIGPATH = .:..:/usr/lib/tex/inputs
  93. FIGPATH = .,..,d:\\\tex\\\macros
  94.  
  95. # where the manual page goes
  96. # MANDIR = /usr/local/text/man/man1
  97. # MANEXT = 1
  98. # MANDIR = /usr/local/text/man/man$(MANEXT)
  99.  
  100. # add -DDEBUG to turn on debugging capability
  101. # add -DTPIC for tpic support
  102. # if the default resolution is not 300 dpi,
  103. # add -DDEFRES=400 or whatever is required
  104. # add -DFONTLIB to search font libraries
  105. # add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
  106. # add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
  107. DEFS= -DTPIC -DDEBUG -DDEFRES=300
  108.  
  109. # either use
  110. # OPT = -g -Wall
  111. # or
  112. OPT = -O -s -Wall
  113.  
  114. # libraries to include (-lm -lc on most systems)
  115. #FLIBS= -lNeXT_s -lsys_s
  116. FLIBS= -lpml
  117.  
  118. PATHS = -DTFMPATH=\"$(TFMPATH)\" \
  119.     -DPKPATH=\"$(PKPATH)\" \
  120.     -DVFPATH=\"$(VFPATH)\" \
  121.     -DHEADERPATH=\"$(HEADERPATH)\" \
  122.     -DCONFIGPATH=\"$(CONFIGPATH)\" \
  123.         -DCONFIGFILE=\"$(CONFIGFILE)\" \
  124.     -DFONTSUBDIRPATH=\"$(FONTSUBDIRPATH)\" \
  125.     -DFIGPATH=\"$(FIGPATH)\"
  126.  
  127. CFLAGS = $(DEFS) $(PATHS) $(OPT) $(SYS) $(SECURE) $(EMTEX) $(DEFPFMT)
  128.  
  129. SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
  130.     download.c prescan.c scanpage.c skippage.c output.c scalewidth.c \
  131.     dosection.c dopage.c resident.c search.c unpack.c drawps.c \
  132.     header.c makefont.c repack.c virtualfont.c dpicheck.c finclude.c \
  133.     flib.c
  134.  
  135. OBJ = dospecial.o dviinput.o fontdef.o loadfont.o dvips.o tfmload.o \
  136.     download.o prescan.o scanpage.o skippage.o output.o scalewidth.o \
  137.     dosection.o dopage.o resident.o search.o unpack.o drawps.o \
  138.     header.o makefont.o repack.o virtualfont.o dpicheck.o finclude.o \
  139.     flib.o
  140.  
  141. # files required to make a distribution
  142. CONFIGFILES = config.ps psfonts.map
  143. HEADERFILES = tex.lpro texc.script texps.lpro special.lpro finclude.lpro
  144. FILES = $(CONFIGFILES) $(HEADERFILES) $(SRC) \
  145.     Makefile INSTALLATION README rotsample.tex AGaramond-Demo.pfb \
  146.     MakeTeXPK ../afm/Makefile epsf.tex epsf.sty rotate.tex rotate.sty \
  147.         dvips.1 paths.h debug.h structures.h squeeze.c afm2tfm.c afm2tfm.1
  148.  
  149. all : afm2tfm dvips tex.pro texps.pro texc.pro special.pro finclude.pro
  150.  
  151. dvips : $(OBJ)
  152.     $(CC) $(CFLAGS) $(OBJ) $(LIBS) $(FLIBS) -o dvips.ttp
  153.  
  154. afm2tfm: afm2tfm.c
  155.     $(CC) $(CFLAGS) -o afm2tfm afm2tfm.c $(LIBS) $(FLIBS)
  156.  
  157. $(OBJ) : structures.h debug.h Makefile
  158. flib.o resident.o dvips.o loadfont.o tfmload.o : paths.h
  159.  
  160. squeeze : squeeze.o
  161.     $(CC) $(CFLAGS) squeeze.o -o squeeze $(LIBS) $(FLIBS)
  162.  
  163. tex.pro : tex.lpro squeeze
  164.     .\squeeze <tex.lpro > tex.pro
  165.  
  166. texc.pro: texc.lpro squeeze
  167.     .\squeeze <texc.lpro >texc.pro
  168.  
  169. texc.lpro: texc.script tex.lpro
  170.     .\texc.script <tex.lpro >texc.lpro
  171.  
  172. texps.pro : texps.lpro squeeze
  173.     .\squeeze <texps.lpro >texps.pro
  174.  
  175. special.pro : special.lpro squeeze
  176.     .\squeeze <special.lpro >special.pro
  177.  
  178. finclude.pro : finclude.lpro squeeze
  179.     .\squeeze <finclude.lpro >finclude.pro
  180.  
  181. install : afm2tfm dvips MakeTeXPK \
  182.     tex.pro texc.pro texps.pro special.pro finclude.pro \
  183.     config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
  184.     dvips.1 afm2tfm.1
  185.     - mkdir $(BINDIR)
  186.     - mkdir $(HEADERDIR)
  187.     - mkdir $(CONFIGDIR)
  188.     - mkdir $(MANDIR)
  189.     - mkdir $(TEXMACRODIR)
  190.     $(INSTALL) -c -m 755 afm2tfm $(BINDIR)/afm2tfm
  191.     $(INSTALL) -c -m 755 dvips $(BINDIR)/dvips
  192.     $(INSTALL) -c -m 755 MakeTeXPK $(BINDIR)/MakeTeXPK
  193.     $(INSTALL) -c -m 644 tex.pro $(HEADERDIR)
  194.     $(INSTALL) -c -m 644 texc.pro $(HEADERDIR)
  195.     $(INSTALL) -c -m 644 texps.pro $(HEADERDIR)
  196.     $(INSTALL) -c -m 644 special.pro $(HEADERDIR)
  197.     $(INSTALL) -c -m 644 finclude.pro $(HEADERDIR)
  198.     $(INSTALL) -c -m 644 config.ps $(CONFIGDIR)/$(CONFIGFILE)
  199.     $(INSTALL) -c -m 644 psfonts.map $(CONFIGDIR)
  200.     $(INSTALL) -c -m 644 epsf.tex $(TEXMACRODIR)
  201.     $(INSTALL) -c -m 644 epsf.sty $(TEXMACRODIR)
  202.     $(INSTALL) -c -m 644 rotate.tex $(TEXMACRODIR)
  203.     $(INSTALL) -c -m 644 rotate.sty $(TEXMACRODIR)
  204.     -$(INSTALL) -c -m 644 dvips.1 $(MANDIR)/dvips.$(MANEXT)
  205.     -$(INSTALL) -c -m 644 afm2tfm.1 $(MANDIR)/afm2tfm.$(MANEXT)
  206.  
  207. veryclean :
  208.     rm -f *.o dvips squeeze afm2tfm texc.lpro *.pro *~ *.log *.dvi
  209.  
  210. clean :
  211.     rm -f *.o squeeze afm2tfm *~ *.log *.dvi
  212.  
  213. lint :
  214.     lint $(DEFS) $(PATHS) $(SRC)
  215.     lint $(DEFS) squeeze.c
  216.     lint $(DEFS) afm2tfm.c
  217.